
import ajax from '@/api/apiConfig.js'

/* 新增、更新题库题目 */
export const saveOrUpdateQuestion = (data) => {
  return ajax.post('exam/saveOrUpdateQuestion', data)
}

/* 题库列表页面统计 */
export const getQuestionListCount = (data) => {
  return ajax.get('exam/getQuestionListCount', data)
}

/* 获取题库列表 */
export const getQuestionList = (data) => {
  return ajax.get('exam/getQuestionList', data)
}

/* 获取题目选项内容 */
export const getQuestionOptionInfo = (data) => {
  return ajax.get('exam/getQuestionOptionInfo', data)
}

/* 删除题库题目 */
export const delQuestion = (data) => {
  return ajax.post('exam/delQuestion', data)
}

/* 获取考试试卷列表 */
export const getExamPaperList = (data) => {
  return ajax.get('exam/getExamPaperList', data)
}

/* 删除试卷 */
export const delPapers = (data) => {
  return ajax.post('exam/delPapers', data)
}

/* 获取试卷详细信息 */
export const getPaperDetailInfo = (data) => {
  return ajax.get('exam/getPaperDetailInfo', data)
}

/* 新增、编辑试卷 */
export const saveOrUpdatePaper = (data) => {
  return ajax.post('exam/saveOrUpdatePaper', data)
}

/* 试卷已选择的题目信息 */
export const getPaperSelectQuestion = (data) => {
  return ajax.get('exam/getPaperSelectQuestion', data)
}

/* 获取考试信息列表 */
export const getExamRecords = (data) => {
  return ajax.get('exam/getExamRecords', data)
}

/* 获取考试统计信息 */
export const getExamCount = (data) => {
  return ajax.get('exam/getExamCount', data)
}

/* 删除考试信息 */
export const delExams = (data) => {
  return ajax.get('exam/delExams', data)
}

/* 新增或更新考试信息 */
export const saveOrUpdateExam = (data) => {
  return ajax.post('exam/saveOrUpdateExam', data)
}

/* 获取考试详情信息 */
export const getExamDetailById = (data) => {
  return ajax.get('exam/getExamDetailById', data)
}

/* 获取考试详情信息 */
export const getExamInfo = (data) => {
  return ajax.get('exam/getExamInfo', data)
}

/* 获取考试明细列表 */
export const getExamDetailInfo = (data) => {
  return ajax.get('exam/getExamDetailInfo', data)
}

/* 获取学生试卷详情 */
export const getExamQuestionByExamId = (data) => {
  return ajax.get('exam/getExamQuestionByExamId', data)
}

/* 获取考试场次列表 */
export const getExamInfoListByOrgIds = (data) => {
  return ajax.get('exam/getExamInfoListByOrgIds', data)
}

/* 单场考试分析-考试统计-及格率 */
export const getExamPassCount = (data) => {
  return ajax.get('exam/getExamPassCount', data)
}

/* 单场考试分析-考试统计-题型正确率 */
export const getQuestionTypeCount = (data) => {
  return ajax.get('exam/getQuestionTypeCount', data)
}

/* 考生分析-考生得分统计 */
export const getScoreCount = (data) => {
  return ajax.get('exam/getScoreCount', data)
}

/* 获取考生得分排名 */
export const getExamDetailForCalc = (data) => {
  return ajax.get('exam/getExamDetailForCalc', data)
}

/* 考生分析-场次统计 */
export const getStudentsExamNumCount = (data) => {
  return ajax.get('exam/getStudentsExamNumCount', data)
}

/* 考生分析-考生得分趋势 */
export const getScoreCountListTrend = (data) => {
  return ajax.get('exam/getScoreCountListTrend', data)
}

/* 部门分析-部门参考情况 */
export const getExamInfoByDept = (data) => {
  return ajax.get('exam/getExamInfoByDept', data)
}

/* 部门分析--考试明细 */
export const getDeptExamCountDetail = (data) => {
  return ajax.get('exam/getDeptExamCountDetail', data)
}
